$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .banner {
    position: relative;

    img {
      width: 100%;
      display: block;
      object-fit: cover;
    }

    .text {
      position: absolute;
      left: 190/$f+vw;
      top: 50%;
      transform: translateY(-50%);

      .p1 {
        background: linear-gradient(180deg, rgba(56, 110, 181, 0.50) 35.29%, rgba(255, 255, 255, 0.00) 84.31%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 40/$f+vw;
        text-transform: uppercase;
        font-family: 'PingFang';
        font-weight: 600;
      }

      .p2 {
        color: #386EB5;
        font-size: 48/$f+vw;
        font-weight: 700;
        margin-top: -1vw;
      }
    }

    .types {
      border-top: 3px solid rgba(58, 133, 192, 0.10);
      background: rgba(0, 0, 0, 0.30);
      backdrop-filter: blur(5px);
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;

      .items {
        width: 65%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;

        .item {
          width: 20%;
          position: relative;
          cursor: pointer;

          &::before {
            content: '';
            display: block;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: -2px;
            width: 0;
            transition: all 600ms;
            height: 4/$f+vw;
            background: #386EB5;
          }

          .p1 {
            color: #FFF;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 22/$f+vw 0;
            font-size: 20/$f+vw;
            font-weight: 700;
            transition: all 600ms;

            svg {
              display: block;
              width: 24/$f+vw;

              path {
                transition: all 600ms;
              }
            }
          }

          &:hover {
            &::before {
              width: 100%;
            }

            .p1 {
              color: #386EB5;

              svg {
                path {
                  stroke: #386EB5;
                }
              }
            }
          }
        }

        .active {
          &::before {
            width: 100%;
          }

          .p1 {
            color: #386EB5;

            svg {
              path {
                stroke: #386EB5;
              }
            }
          }
        }
      }
    }
  }


  .main {
    //margin: 80/$f+vw 190/$f+vw;

    .section1{
      position: relative;
      height: 100vh;
      *{
        box-sizing: border-box;
      }
      .img{
        width: 100%;
        height: 100%;
      }
      .text{
        position: absolute;
        width: 100%;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        text-align: center;
        padding: 0 5%;
        color: #FFF;
        font-size: 70/$f+vw;
        font-style: normal;
        font-weight: 400;
      }
    }

    .section2{

      padding: 176/$f+vw 0 131/$f+vw 0;
      .wrap{
        width: 1300/$f+vw;
        margin: auto;
        .title{
          text-align: center;
          margin: 0 0 184/$f+vw;
          h1{
            color: #000;
            font-size: 58/$f+vw;
            font-style: normal;
            font-weight: 600;
            line-height: 87/$f+vw; /* 150% */
            margin: 0 0 24/$f+vw;
          }
          p{
            color: #999;
            font-family: Inter;
            font-size: 20/$f+vw;
            font-style: normal;
            font-weight: 500;
          }
        }
        .content{
          display: flex;
          justify-content: space-between;
          .item{
            width: 100%;
            height: 100%;
            position: relative;
            border-radius: 15/$f+vw;
            background: #F1F1F1;
            overflow: hidden;
            .img{
              width: 100%;
              height: 100%;
            }
            .text{
              position: absolute;
              top: 33/$f+vw;
              left: 30/$f+vw;
              color: #FFF;
              text-shadow: 0px 2px 5.88px rgba(0, 0, 0, 0.21);
              font-size: 15.781/$f+vw;
              font-style: normal;
              font-weight: 400;
              line-height: 20/$f+vw; /* 126.733% */
            }
          }
          .l{
            width: 539/$f+vw;
            height: 465/$f+vw;
            transition: all 320ms ease-out 0s;
            position: relative;
            .item{
              position: absolute;
              left: 0;
              bottom: 0;
              width: 100%;
              height: 465/$f+vw;
              overflow: hidden;
              transition: all 320ms ease-out 0s;
              .img{
                height: 545/$f+vw;
                position: absolute;
                width: 100%;
                bottom: 0;
                left: 0;
              }
            }
            &:hover{
              .item{
                height: 545/$f+vw;
              }
            }
          }
          .r{
            width: 735/$f+vw;
            .flex{
              width: 100%;
              display: flex;
              justify-content: space-between;
              &:last-child{
                margin: 30/$f+vw 0 0 0;
              }
              .items{
                width: 355/$f+vw;
                height: 225/$f+vw;
                position: relative;
                overflow: unset;
                .img{
                  height: 225/$f+vw;
                  position: absolute;
                  width: 100%;
                  bottom: 0;
                  left: 0;
                  transition: all 320ms ease-out 0s;
                  overflow: hidden;
                  border-radius: 15px;

                  img{
                    height: 305/$f+vw;
                    position: absolute;
                    width: 100%;
                    bottom: 0;
                    left: 0;
                  }
                }
                &:hover{
                  .img{
                    height: 305/$f+vw;
                  }
                }
              }
              .items2{
                height: 210/$f+vw;
                position: relative;
                overflow: unset;
                .img{
                  height: 210/$f+vw;
                  position: absolute;
                  width: 100%;
                  top: 0;
                  left: 0;
                  transition: all 320ms ease-out 0s;
                  overflow: hidden;
                  border-radius: 15px;

                  img{
                    height: 290/$f+vw;
                    position: absolute;
                    width: 100%;
                     top: 0;
                    left: 0;
                  }
                }
                &:hover{
                  .img{
                    height: 290/$f+vw;
                  }
                }
              }
            }
          }
        }
      }
    }

    .section3{
      *{
        box-sizing: border-box;
      }
      background: #F4F5F7;
      padding: 108/$f+vw 0 126/$f+vw 0;
      .wrap{
        width: 1540/$f+vw;
        margin: auto;
        .title{
          color: #000;
          font-size: 40/$f+vw;
          font-style: normal;
          font-weight: 600;
          margin: 0 0 40/$f+vw;
        }
        .cut{
          display: flex;
          .list{
            display: flex;
            height: 54/$f+vw;
            padding: 0 54/$f+vw;
            justify-content: center;
            align-items: center;
            flex-shrink: 0;
            border-radius: 50/$f+vw;
            border: 1px solid #000;
            color: #000;
            font-size: 18/$f+vw;
            font-style: normal;
            font-weight: 500;
            cursor: pointer;
            transition: .6s;
            &:not(:last-child) {
              margin: 0 48/$f+vw 0 0;
            }
            &.on{
              background: #386EB5;
              color: #fff;
              border: 1px solid transparent;
            }
          }
        }
        .all{
          color: rgba(0, 0, 0, 0.90);
          font-family: OPPOSans;
          font-size: 24/$f+vw;
          font-style: normal;
          font-weight: 400;
          line-height: normal;
          margin: 48/$f+vw 0;
        }
        .content{
          .matter{
            display: none;
            @keyframes yAnimate {
              0%{
                transform: translateY(10px);
                opacity: 0;
              }
              100%{
                opacity: 1;
                transform: translateY(0);
              }
            }
            &.on{
              display: block;
              animation: yAnimate .6s linear forwards;
            }
            .item{
              background: #fff;
              position: relative;
              .add{
                width: 31/$f+vw;
                height: 31/$f+vw;
                border-radius: 50%;
                border: 1px solid #C4C4C4;
                display: flex;
                align-items: center;
                justify-content: center;
                position: absolute;
                right: 35/$f+vw;
                bottom: 52/$f+vw;
                cursor: pointer;
                transition: .6s;
                img{
                  width: 14/$f+vw;
                  height: 18/$f+vw;
                  transition: .5s;
                  &:nth-child(2) {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%,-50%);
                    opacity: 0;
                  }
                }
              }
              &:not(:last-child) {
                margin: 0 0 32/$f+vw;
              }
              .show{
                height: 136/$f+vw;
                padding: 0 48/$f+vw;
                display: flex;
                align-items: center;
                p{
                  color: #386EB5;
                  font-size: 32/$f+vw;
                  font-style: normal;
                  font-weight: 600;
                  line-height: 54/$f+vw; /* 168.75% */
                }
              }
              .hide{
                overflow: hidden;
                display: none;
                &>div{
                  margin: 0 48/$f+vw 48/$f+vw 48/$f+vw;
                  h1{
                    color: #000;
                    font-size: 20/$f+vw;
                    font-style: normal;
                    font-weight: 500;
                  }
                  p{
                    color: rgba(0, 0, 0, 0.70);
                    font-size: 18/$f+vw;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 36/$f+vw;
                  }
                  .more{
                    width: fit-content;
                    padding: 0 38/$f+vw;
                    height: 47/$f+vw;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border-radius: 66.785/$f+vw;
                    background: #E0E5E9;
                    color: #386EB5;
                    font-size: 21.66/$f+vw;
                    font-style: normal;
                    font-weight: 400;
                    margin: 23/$f+vw 0 0 0;
                  }
                }
              }
              &.on{
                .add{
                  background: #1280C4;
                  border: 1px solid transparent;
                  img{
                    &:nth-child(1) {
                      opacity: 0;
                    }
                    &:nth-child(2) {
                      opacity: 1;
                    }
                  }
                }
              }
            }
          }
        }
      }
    }

  }

  img{
    object-fit: cover;
  }


  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      img{
        height: 150px;
      }
      .text{
        left: 5%;
        top:50%;
        .p1{
          font-size: 20px;
        }
        .p2{
          font-size: 20px;
          margin-top: -10px;
        }
      }
      .types{
        position: static;
        .items{
          width: 100%;
          .item{
            .p1{
              font-size: 12px;
              padding: 10px 0;
            }
          }
        }
      }
    }
    .main{
      .section1{
        .text{
          font-size: 24px;
        }
      }

      .section2{
        padding: 25px 0;
        .wrap{
          width: 90%;
          .title{
            margin: 0 0 25px;
            h1{
              font-size: 22px;
              line-height: 1.5;
              margin: 0 0 10px;
            }
            p{
              font-size: 14px;
            }
          }
          .content{
            flex-direction: column;
            .item{
              border-radius: 15px;
              overflow: hidden;
              .text{
                font-size: 16px;
                top: 20px;
                left: 20px;
                line-height: 1;
              }
            }
            .l{
              width: 100%;
              height: 178px;
              .item{
                height: 100% !important;
                .img{
                  height: 100%;
                }
              }
            }
            .r{
              width: 100%;
              margin: 10px 0 0 0;
              .flex{
                &:last-child{
                  margin: 10px 0 0 0;
                }
                .items{
                  height: 154px;
                  width: 48%;
                  .img{
                    height: 100% !important;
                    img{
                      height: 100% !important;
                    }
                  }
                }
                .items2{
                  height: 148px;
                  .img{
                    height: 100%;
                    img{
                      height: 100%;
                    }
                  }
                }
              }
            }
          }
        }
      }

      .section3{
        padding: 25px 0;
        .wrap{
          width: 90%;
          .title{
            font-size: 24px;
            margin: 0 0 10px;
          }
          .cut{
            .list{
              width: 124px;
              height: 36px;
              font-size: 12px;
              border-radius: 50px;
              &:not(:last-child) {
                margin: 0 15px 0 0;
              }
            }
          }
          .content{
            .matter{
              .all{
                font-size: 14px;
                margin: 15px 0;
              }
              .item{
                .add{
                  width: 25px;
                  height: 25px;
                  right: 10px;
                  bottom: 17px;
                  img{
                    width: 10px;
                    height: 10px;
                  }
                }
                &:not(:last-child) {
                  margin: 0 0 15px;
                }
                .show{
                  height: 60px;
                  padding: 0 0 0 10px;
                  p{
                    font-size: 14px;
                  }
                }
                .hide{
                  &>div{
                    margin: 10px 10px 25px 10px;
                    h1{
                      font-size: 16px;
                    }
                    p{
                      font-size: 14px;
                      line-height: 1.8;
                    }
                    a.more{
                      font-size: 16px;
                      height: auto;
                      padding: 10px 15px;
                      margin: 25px 0 0 0;
                      border-radius: 50px;
                    }
                  }
                }
              }
            }
          }
        }
      }

    }
  }
}